<!DOCTYPE html>
<html>

<head>
  <title></title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="../bootstrap-5.1.3-dist/css/bootstrap.css" rel="stylesheet">
  <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
</head>

<body class="container">
  <h3 align="center">列表项的背景和文字颜色</h3>
  <ul class="list-group">
    <li class="list-group-item list-group-item-primary">西湖南北烟波阔</li>
    <li class="list-group-item list-group-item-secondary">风里丝簧声韵咽</li>
    <li class="list-group-item list-group-item-success">舞余裙带绿双垂</li>
    <li class="list-group-item list-group-item-danger">酒入香腮红一抹</li>
    <li class="list-group-item list-group-item-warning">杯深不觉琉璃滑</li>
    <li class="list-group-item list-group-item-info">贪看六幺花十八</li>
    <li class="list-group-item list-group-item-light">明朝车马各西东</li>
    <li class="list-group-item list-group-item-dark">惆怅画桥风与月</li>
  </ul>

</body>

</html>